<template>
  <div>
    <h2>安装/Install</h2>
    <code>yarn add @hyjiacan/vue-ellipsis</code>
    <p>或/OR</p>
    <code>npm install @hyjiacan/vue-ellipsis</code>
    <h2>使用/Usage</h2>
    <code>import ellipsis from '@hyjican/vue-ellipsis'</code>
    <code>Vue.use(ellipsis)</code>
    <p>或/OR</p>
    <code>import {ellipsisDirective, ellipsisComponent} from '@hyjiacan/vue-ellipsis'</code>
    <code>Vue.directive(ellipsisDirective.name, ellipsisDirective)</code>
    <code>Vue.component(ellipsisComponent.name, ellipsisComponent)</code>
  </div>
</template>

<script>
export default {
  name: 'Usage'
}
</script>

<style scoped>

</style>
